#include<stdio.h>
int main()
{
    void move(int [10],int ,int);
    int number[10],n,m,i;
    printf("how many numbers?\n");
    scanf("%d",&n);
    printf("please enter %d 个数\n",n);
    for(i=0;i<n;i++)
        scanf("%d",&number[i]);
    printf("\nHow many place you want move?\n");
    scanf("%d",&m);
    move(number,n,m);
    printf("Now they are:\n");
    for(i=0;i<n;i++)
        printf("%2d",number[i]);
    printf("\n");
    return 0;
}
void move(int array[20],int n,int m)
{
    int *p,array_end;
    array_end=*(array+n-1);
    for(p=array+n-1;p>array;p--)
        *p=*(p-1);
    *array=array_end;
    m--;
    if(m>0) move(array,n,m);//递归调用，当m的次数减到0的时候循环结束
}